package com.lkei.service.impl;

import com.lkei.dao.TeacherMessageNoticeDAO;
import com.lkei.entity.TeacherStudentNotice;
import com.lkei.service.TeacherMessageNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("teacherMessageNoticeService")
public class TeacherMessageNoticeServiceImpl implements TeacherMessageNoticeService {
    @Autowired
    private TeacherMessageNoticeDAO teacherMessageNoticeDAO;


    @Override
    public void addTeacherNotice(TeacherStudentNotice teacherStudentNotice) {
        teacherMessageNoticeDAO.addTeacherNotice(teacherStudentNotice);
    }

    @Override
    public List<TeacherStudentNotice> findNotice(Integer teacherID) {
        return teacherMessageNoticeDAO.findNotice(teacherID);
    }

    @Override
    public String findNoticeByMessageID(Integer MessageID) {
        return teacherMessageNoticeDAO.findNoticeByMessageID(MessageID);
    }

    @Override
    public List<TeacherStudentNotice> findNoticeByStudentID(Long StudentID) {
        return teacherMessageNoticeDAO.findNoticeByStudentID(StudentID);
    }

    @Override
    public void DeleteMessage(Integer MessageID) {
        teacherMessageNoticeDAO.DeleteMessage(MessageID);
    }

    @Override
    public void DeleteRelationship(Integer MessageID) {
        teacherMessageNoticeDAO.DeleteRelationship(MessageID);
    }
}
